package cc.liyinghao.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;


@Data
@ApiModel(description = "系统用户信息")
public class SysUser {

    @TableId(value="id",type= IdType.AUTO)
    @ApiModelProperty(value = "用户ID", example = "1")
    private Integer id;

    @ApiModelProperty(value = "用户名", example = "admin", required = true)
    private String username;

    @ApiModelProperty(value = "密码", example = "123456", required = true)
    private String password;

    @ApiModelProperty(value = "头像URL", example = "https://example.com/avatar.jpg")
    private String headImgUrl;

    @ApiModelProperty(value = "手机号", example = "13800138000")
    private String phoneNumber;

    @ApiModelProperty(value = "用户状态（0：禁用，1：启用）", example = "1")
    private Integer status;

    @ApiModelProperty(value = "邮箱地址", example = "user@example.com")
    private String email;

    @ApiModelProperty(value = "备注", example = "管理员账户")
    private String note;

    @ApiModelProperty(value = "注册时间", example = "2024-02-06T12:00:00Z")
    private Date CreateTime;

    @ApiModelProperty(value = "最后登录时间", example = "2024-02-06T12:00:00Z")
    private Date loginTime;
}

